package pers.sports.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import pers.sports.entity.Student;

@Repository
public interface StudentDao {

    //查询学生密码
    String findStuPwdByNum(String num);

    //利用学号查询邮箱
    String findStuEmailByNum(String num);

    //利用学号修改密码
    void updatePwdByNum(String num, String pwd);

    //利用学号查id
    String findStuIdByNum(String num);

    Student findInfoByNum(@Param("num") String num);

    Integer updateEmailById(@Param("id") String id, @Param("email") String email);
}
